import React from 'react';
import { Switch, Route, Redirect ,Routes} from 'react-router-dom'
import AddBank from './AddBank'
import BankManagement from './BankManagement'
const BankRouter = () => {
    return (
        <Routes>
             <Route path="/" exact element={<BankManagement/>}></Route>
            <Route path="/bank" exact element={<BankManagement/>}></Route>
            <Route path="/bank/addBank" element={<AddBank/>}></Route>
        </Routes>
    );
}

export default BankRouter;
